API Documentation
SubEntity.h
1 // SubEntity.h
3 //
5 
6 namespace nkGraphics
7 {
11  class DLL_GRAPHICS_EXPORT SubEntity final : public nkExport::Exportable
12  {
13  public :
14 
18  SubEntity () ;
23 
24  // Getters
28  Entity* getParentEntity () const ;
32  Mesh* getMesh () const ;
36  BoundingBox* getBounds () const ;
37 
38  // Setters
44  void setParentEntity (Entity* ent) ;
50  void setMesh (Mesh* mesh) ;
57  void setDirtyNodeTransform (bool value) ;
58 
59  // Updates
70 
71  // Import / Export
77  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
83  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
84  } ;
85 }
nkGraphics::SubEntity::setMesh
void setMesh(Mesh *mesh)
nkGraphics::SubEntity::getMesh
Mesh * getMesh() const
nkGraphics::SubEntity::SubEntity
SubEntity()
nkGraphics::SubEntity::meshUpdatedBounds
void meshUpdatedBounds()
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::BoundingBox
A bounding box. Often used to encompass object's bounds in the world.
Definition: BoundingBox.h:14
nkGraphics::SubEntity::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::SubEntity::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::SubEntity::setDirtyNodeTransform
void setDirtyNodeTransform(bool value)
nkGraphics::SubEntity::~SubEntity
~SubEntity()
nkGraphics::SubEntity::getBounds
BoundingBox * getBounds() const
nkGraphics::SubEntity::meshUpdatedLayout
void meshUpdatedLayout()
nkGraphics::SubEntity::getParentEntity
Entity * getParentEntity() const
nkGraphics::SubEntity
Holds information about a sub entity, a renderable exposing the geometry.
Definition: SubEntity.h:12
nkGraphics::SubEntity::setParentEntity
void setParentEntity(Entity *ent)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14